package io.file;

import java.io.File;
import java.io.IOException;

public class FileDemoX {
    public static boolean createF(String s) {
       File file = new File(s);
        boolean result=false;
        if(!file.getParentFile().exists()){
            file.getParentFile().mkdirs();
        }
        try {
             result=file.createNewFile();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return true;
    }

    public static boolean deleteF(String s) {
        File file = new File(s);
        return file.delete();
    }
}
